package c.h.a.c0;

import android.hardware.GeomagneticField;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import com.liuzh.deviceinfo.location.RealtimeSatelliteActivity;
import java.util.Objects;

/* compiled from: RealtimeSatelliteActivity */
public class d implements LocationListener {
    public final /* synthetic */ RealtimeSatelliteActivity a;

    public d(RealtimeSatelliteActivity realtimeSatelliteActivity) {
        this.a = realtimeSatelliteActivity;
    }

    public void onLocationChanged(Location location) {
        RealtimeSatelliteActivity realtimeSatelliteActivity = this.a;
        realtimeSatelliteActivity.x = location;
        Objects.requireNonNull(realtimeSatelliteActivity);
        realtimeSatelliteActivity.F = new GeomagneticField((float) realtimeSatelliteActivity.x.getLatitude(), (float) realtimeSatelliteActivity.x.getLongitude(), (float) realtimeSatelliteActivity.x.getAltitude(), realtimeSatelliteActivity.x.getTime());
    }

    public void onProviderDisabled(String str) {
    }

    public void onProviderEnabled(String str) {
    }

    public void onStatusChanged(String str, int i, Bundle bundle) {
    }
}
